package com.bci.pwtz.mysql.model;

import java.util.Date;

import com.bci.pwtz.common.util.PwtzUtils;

public class AdminSmsSendLog {
    private Long logId;

    private String content;

    private String mobile;

    private Date createTime;

    private Long operatorId;
    
    private String createTimeStr;
    
    private AdminUser operator;
    
    public Long getLogId() {
        return logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    /**
     * @return the createTimeStr
     */
    public String getCreateTimeStr()
    {
        createTimeStr="";
        if(createTime!=null){
            createTimeStr = PwtzUtils.date2String(createTime,"yyyy-MM-dd HH:mm:ss");
        }
        return createTimeStr;
    }

    /**
     * @param createTimeStr the createTimeStr to set
     */
    public void setCreateTimeStr(String createTimeStr)
    {
        this.createTimeStr = createTimeStr;
    }
    
    public AdminUser getOperator()
    {
        return operator;
    }

    public void setOperator(AdminUser operator)
    {
        this.operator = operator;
    }

    @Override
    public String toString()
    {
        return "AdminSmsSendLog [logId=" + logId + ", content=" + content + ", mobile=" + mobile + ", createTime=" + createTime + ", operatorId=" + operatorId + "]";
    }
    
}